So: - Problem: I render a chat menu where the player can call several character's macro, in each macro there is a call to an API command. For example <a href="#cast-my-spell">casts</a>, the content of the macro cast-my-spell is !cast-my-spell - The HTML link is sent to the chat - Game is dnd 5e original sheet The chat menu is created by a script that reads the sheet, does some logic inside, then creates a macro called "Show-Spell-Menu". This macro is created inside the character and the same character has all the other macros. So the players uses the macro "Show-Spell-Menu", the spell menu pops up in the chat with all the links to the other macros.